home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trusted Irix /B 4.0.4
/
Trusted-Irix B-4.0.1.iso
/
dist
/
eoe1.idb
/
usr
/
include
/
sys
/
smfd.h.z
/
smfd.h
Wrap
C/C++ Source or Header
|
1992-04-03
|
3KB
|
77 lines
/**************************************************************************
* *
* Copyright (C) 1986, Silicon Graphics, Inc. *
* *
* These coded instructions, statements, and computer programs contain *
* unpublished proprietary information of Silicon Graphics, Inc., and *
* are protected by Federal copyright law. They may not be disclosed *
* to third parties or copied or duplicated in any form, in whole or *
* in part, without the prior written consent of Silicon Graphics, Inc. *
* *
**************************************************************************/
/* This is the header file for the driver for the Scientific Micro
Systems SCSI floppy. Many structures are shared with dksc.h so
so that programs won't have to be changed. Some fields will
obviously be ignored.
Driver first created by Dave Olson, 6/88.
*/
#ident "$Revision: 1.13 $"
/* SCSI disk minor # breakdown (for floppies, we use partition
* to indicate type of floppy; partitions aren't supported).
*
* 7 6 5 4 3 2 1 0
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* + + + +
* + Target ID + Logical unit # + Partition +
* + + + (floppy type) +
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
#define _SMFDIOC_(x) (('f'<<8) | x)
/* values returned by smfd_type(), used for table indices, etc */
#define FD_FLOP 0 /* 360K (48tpi) */
#define FD_FLOP_DB 1 /* 720K (96tpi,9sec/trk) */
#define FD_FLOP_AT 2 /* 1.2M (96tpi,15sec/trk) (PC-AT) */
#define FD_FLOP_35LO 4 /* 'low density' 3.5" floppy (720K) */
#define FD_FLOP_35 5 /* 'high density' 3.5" floppy (1.44 Mb) (*/
#define SMFD_MAX_TYPES 6 /* use minor # to indicate type */
#define SMFD_TYPE_MASK 0xf
#define smfd_type(minor) (minor & SMFD_TYPE_MASK)
#define MAXFLOPS 1 /* number of floppy drives supported */
#define SMFDSETMODE _SMFDIOC_(0) /* set spt, cyls, tpi, etc */
#define SMFDREQSENSE _SMFDIOC_(1) /* return last sense key */
#define SMFDRECAL _SMFDIOC_(2) /* do a recal on the drive */
#define SMFDEJECT _SMFDIOC_(3) /* eject floppy disk, return EINVAL */
/* if software eject not supported */
#define SMFDMEDIA _SMFDIOC_(4) /* return media status */
/* ioctl(smfd, SMFDMEDIA, int *) */
#define SMFDMEDIA_READY (1 << 0) /* media in drive */
#define SMFDMEDIA_CHANGED (1 << 1) /* media changed */
#define SMFDMEDIA_WRITE_PROT (1 << 2) /* media is write protected */
#define SMFDNORETRY _SMFDIOC_(5) /* no retry on reset/media change during
read/write */
struct smfd_setup { /* structure for SMFDSETMODE. Values of 0 use
current values. */
int secsize; /* bytes per sector, between 128 and 4096
(inclusive) in powers of 2 */
int sectrk; /* typically 8 or 9 for 512, 4 or 5 for 1024 byte
sectors */
int density; /* MFM/FM. No way to set with mode select... */
int tpi; /* tpi, only 48 and 96 are supported */
int cyls; /* cylinders on drive */
int heads; /* 1 or 2 */
int headsettle; /* ms */
int motorondelay; /* 1/10's of seconds */
int motoroffdelay; /* 1/10's of seconds */
};